# 清除数据库

import sqlite3
# 连接到数据库， 'wechat_group_messages.db'
conn = sqlite3.connect('wechat_group_messages.db')
cursor = conn.cursor()

cursor.execute("DELETE FROM important_messages;")
cursor.execute("DELETE FROM messages;")

conn.commit()
conn.close()

